<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta content="IE=edge" http-equiv="X-UA-Compatible">
    <title>管理平台 | 登录</title>
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width, initial-scale=1" name="viewport">

    <!-- Font Awesome -->
    <link rel="stylesheet" th:href="@{/static/plugins/fontawesome-free/css/all.min.css}">
    <!-- icheck bootstrap -->
    <link rel="stylesheet" th:href="@{/static/plugins/icheck-bootstrap/icheck-bootstrap.min.css}">
    <!-- Theme style -->
    <link rel="stylesheet" th:href="@{/static/plugins/admin-lte/dist/css/adminlte.min.css}">
    <!--/*  IE地址栏前换成自己的图标  */-->
    <link rel="shortcut icon" th:href="@{/static/favicon.ico}">
    <!--/* 可以在收藏夹中显示出你的图标   */-->
    <link rel="bookmark" th:href="@{/static/favicon.ico}">
</head>
<body class="hold-transition login-page">
<div class="login-box">
    <div class="login-logo">
        <b>管理平台</b>
    </div>
    <!-- /.login-logo -->
    <div class="card">
        <div class="card-body login-card-body">
            <p class="login-box-msg">登录</p>
            <p class="text-danger" th:if="${error}">用户名与密码不匹配</p>
            <form method="post" th:action="@{/page/login}">
                <div class="input-group mb-3">
                    <input class="form-control" name="username" placeholder="用户名" type="text">
                    <div class="input-group-append">
                        <div class="input-group-text">
                            <span class="fas fa-envelope"></span>
                        </div>
                    </div>
                </div>
                <div class="input-group mb-3">
                    <input autofocus="autofocus" class="form-control" name="password" placeholder="密码" type="password">
                    <div class="input-group-append">
                        <div class="input-group-text">
                            <span class="fas fa-lock"></span>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-8">
                        <div class="icheck-primary">
                            <input id="remember" type="checkbox">
                            <label for="remember">
                                记住我
                            </label>
                        </div>
                    </div>
                    <!-- /.col -->
                    <div class="col-4">
                        <button class="btn btn-primary btn-block" type="submit">登录</button>
                    </div>
                    <!-- /.col -->
                </div>
            </form>

            <p class="mb-1">
                <a href="forgot-password.html">已有帐号，忘记密码？</a>
            </p>
            <p class="mb-0">
                没有帐号？ <a class="text-center" href="/page/register">点此注册</a>
            </p>
        </div>
        <!-- /.login-card-body -->
    </div>
</div>
<!-- /.login-box -->

<!-- jQuery -->
<script th:src="@{/static/plugins/jquery/dist/jquery.min.js}"></script>
<!-- Bootstrap 4 -->
<script th:src="@{/static/plugins/bootstrap/dist/js/bootstrap.bundle.min.js}"></script>
<!-- AdminLTE App -->
<script th:src="@{/static/plugins/admin-lte/dist/js/adminlte.min.js}"></script>

</body>
</html>
